import { defineStore } from "pinia";

export const useBattleStore = defineStore("useBattleStore", {
  state: () => {
    return {
      // 所有这些属性都将自动推断出它们的类型
      count: 0,
      name: "Eduardo",
      isAdmin: true,
      items: [],
      hasChanged: true,
    };
  },
  actions: {
    initSimulation() {},
    battleStore(array: [number, number]) {
      console.log("number, number :>> ", array);
    },
  },
  share: {
    enable: true,
    initialize: true,
  },
});
